/*
** 1005.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Fri Sep  5 13:14:05 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
**
** Note: the implementation used too much memory due to the dynamic arrays.
**       Actually a loop and single elements are OK.
*/

/* #include "1005.h" */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define PI (double)3.14159265359

int main()
{
     int p, i, *pxy;
     double *x, *y;

     /* Get how many properties, set the arrays */
     scanf("%d", &p);
     x = (double*) malloc(sizeof(double) * p);
     y = (double*) malloc(sizeof(double) * p);
     pxy = (int*) malloc(sizeof(int) * p);

     /* Get properties */
     for (i = 0; i < p;)
	  if (scanf("%lf%lf", &x[i], &y[i]) == 2)
	       i++;

/*      /\* DEBUG *\/ */
/*      for(i = 0; i < p; i++) */
/* 	  printf("P: %d\tX: %lf\tY: %lf\n", i + 1, x[i], y[i]); */
	  
     /* compute the deadline year */
     for(i = 0; i < p; i++)
	  pxy[i] = (int)ceil((x[i] * x[i] + y[i] * y[i]) * PI / 100);
     
     for(i = 0; i < p; i++)
	  printf("Property %d: This property will begin eroding in year %d.\n",
		 i + 1, pxy[i]);
     printf("END OF OUTPUT.\n");

     return 0;
}


